x11: Scale the frame extents as well
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 27 Oct 2014 23:54:33 +0000 (16:54 -0700)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 27 Oct 2014 23:54:33 +0000 (16:54 -0700)
gdk/x11/gdkwindow-x11.c

index e4b10585fc3b14223f5351a61edf10a351cb05a5..cdecf66d98ea05e46f5a67ed74c6b8f49fc12c59 100644 (file)
@@ -3624,8 +3624,14 @@ gdk_x11_window_set_shadow_width (GdkWindow *window,
                                  int        top,
                                  int        bottom)
 {
+  GdkWindowImplX11 *impl = GDK_WINDOW_IMPL_X11 (window->impl);
   Atom frame_extents;
-  gulong data[4] = { left, right, top, bottom };
+  gulong data[4] = {
+    left * impl->window_scale,
+    right * impl->window_scale,
+    top * impl->window_scale,
+    bottom * impl->window_scale
+  };
 
   frame_extents = gdk_x11_get_xatom_by_name_for_display (gdk_window_get_display (window),
                                                          "_GTK_FRAME_EXTENTS");